package com.eshop.mapper;


import com.eshop.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface RoleMapper {
    //根据用户id查询权限列表
    List<Role> getRoles(Integer uid);
    //用户角色注册
    boolean saveUserRole(Integer rid,Integer uid);
    //根据角色名查找角色id
    int findRoleIdByNameZh(String nameZh);
}
